package com.qadev.appergodic.bean;

import lombok.Data;

/**
 * Created by wjp on 2019/8/9.
 */
@Data

public class XpathValue {
    //index  class resource-id text
    private String index;
    private String class_;
    private String resource_id;
    private String text;
    private String instance;

    public XpathValue( ) {

    }

    public XpathValue(String index, String class_, String resource_id, String text, String instance) {
        this.index = index;
        this.class_ = class_;
        this.resource_id = resource_id;
        this.text = text;
        this.instance = instance;
    }

    //xpath的形式  //*[@index=\"1\"]/*[@resource-id=\"com.houbank.houbankfinance:id/rl_welcome\" and @index=\"0\"]/*[@resource-id=\"com.houbank.houbankfinance:id/ll_welcome_tip\" and @index=\"0\"]/*[@text=\"新手福利\" and @index=\"0\"]
    @Override
    public String toString() {
        return "//*[" +
                "@index=\"" + index + "\" and " +
                "@class=\"" + class_ + "\" and " +
                "@resource-id=\"" + resource_id + "\" and " +
                "@text=\"" + text + "\" and"  +
                "@instance=\"" + instance + "\"" +
                ']';
    }
}
